@extends('layouts.app')
@section('head')
    <style>
        card-header.a{
            margin-left: 20px;

        }
    </style>
@endsection

@section('content')
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-md-8">
                <div class="card">
                    @include('home._banner')
                    <div class="card-body">
                        <table class="table table-bordered table-striped">
                            <thead>
                            <tr>
                                <th>名称</th>
                                <th>排序</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            @forelse($lists as $lv)
                                <tr>
                                    <td>{{$lv['name'] or ''}}</td>
                                    <td>{{$lv['sort'] or ''}}</td>
                                    <td>
                                        <a class="G-color-blue" href="{!! url('home/ctype',['id'=>$lv['id']]) !!}">编辑</a>
                                    </td>
                                </tr>
                            @empty
                                <tr><td colspan="7">暂时没有任何数据</td> </tr>
                            @endforelse
                            </tbody>
                        </table>
                        @if(!$lists->isEmpty())
                            {!! $lists->appends(request()->all())  !!}
                        @endif

                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
